package com.mm.cloud.lease.dto.housing.form;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.io.Serial;
import java.io.Serializable;

/**
 * 房源删除DTO
 */
@Data
public class DeleteHousingDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @NotNull(message = "id不能为空")
    private Long id;

    /**
     * 删除状态 1-永久删除 2-回收站删除
     */
    @NotNull(message = "删除状态")
    @Range(min = 1, max = 2, message = "是否删除范围错误")
    private Byte isDelete;

}
